package com.scs.application.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: fortec-mscm-parent
 * @description:订单业务操作记录表
 **/

@TableName("purchase_process")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class PurchaseProcess implements Serializable {

    @TableId(
            value = "id",
            type = IdType.ID_WORKER_STR
    )
    private String id;
    /**
     * 院方ID
     */
    @NotBlank(message = "院方ID不能为空")
    private String hospitalId;

    /**
     * 院方名称
     */
    private String hospitalName;

    /**
     * 供应商ID
     */
    @NotBlank(message = "供应商ID不能为空")
    private String supplierId;

    /**
     * 供应商名称
     */
    //@NotBlank(message="供应商名称不能为空")
    @Length(min = 1, max = 100, message = "供应商名称长度必须介于 1 和 100 之间")
    private String supplierName;

    /**
     * 订单id
     */
    private String poId;

    /**
     * 业务话术
     */
    private String content;

    /**
     * 订单状态类型
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Date gmtCreate;


}
